/*
 * EquipmentLaser.cpp
 *
 *  Created on: 23/06/2012
 *      Author: lucho0
 */

#include "EquipmentLaser.h"

EquipmentLaser::EquipmentLaser(Widget* parent): Equipment(LASER,parent)  {}

EquipmentLaser::EquipmentLaser(DTOEquipment* dtoEquipment,Widget* parent):Equipment(dtoEquipment->bonusType, parent){}

void EquipmentLaser::handleEvent(Event event){
	if(event.getKey() == Space)
		((PlayScenarioPanel*)parent)->addAmmo(AMMO_LASER);
}

void EquipmentLaser::updateStatus(){
	//Do nothing
}

int EquipmentLaser::reduceLife(int value,playElement element){
	//TODO Do SOMETHING
	return value;
}

void EquipmentLaser::showOn(SDL_Surface* surface,int offsetX,int offsetY) {
	//No se vacía nunca y no se dibuja
}

DTOEquipment* EquipmentLaser::getDTO() {
	return new DTOEquipment(LASER,0,((PlayScenarioPanel*)parent)->getOwner());
}

EquipmentLaser::~EquipmentLaser() {
	// TODO Auto-generated destructor stub
}
